//
//  Switch.swift
//  myhub
//
//  Created by x on 2024/6/3.
//

import UIKit
import XDesignKit

open class Switch: UISwitch {
    public override init(frame: CGRect) {
        super.init(frame: frame)
        makeUI()
    }

    required public init?(coder aDecoder: NSCoder) {
        super.init(coder: aDecoder)
        makeUI()
    }

    open func makeUI() {
        self.theme.tintColor = themeService.attribute { $0.secondary }
        self.theme.onTintColor = themeService.attribute { $0.secondary }
    }
}
